package com.baizhi.llw.service;

import com.baizhi.llw.entity.Admin;

import java.util.Map;


public interface AdminService {
    void insert(Admin admin);
    Admin queryOne(String username);
    //生成验证码
    Map<String,String> getImageCodes();
    //登录检查
    Map<String,String> login(Admin admin, String token);
    //获取登录用户信息
    Admin getUserInfo(String token);
    //退出
    void logout(String token);
}
